from docx import Document

def clear_docx(output):
    str="Evaluation Warning: The document was created with Spire.Doc for Python."
    doc = Document(output)
    for para in doc.paragraphs:
        if str in para.text:
            para.clear()
    doc.save(output)

#
# if __name__ == '__main__':
#     clear_docx("E:\\test\\b\\a.docx")